<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .container {
			width: 100%;
			height: 500px;
			outline: 1px solid red;
			display: grid;
			grid-template-columns: repeat(1, 50px) repeat(2, 100px) auto;
			/* // 上下间距 */
			grid-row-gap: 5px;
			/* // 左右间距 */
			grid-column-gap: 10px;
			/* 合写 */
			grid-gap: 10px 5px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header" style="background: orange;">1</div>
        <div class="content" style="background: #ccc;">2</div>
        <div class="footer" style="background: green;">3</div>
		<div class="header" style="background: orange;">1</div>
		<div class="content" style="background: #ccc;">2</div>
		<div class="footer" style="background: green;">3</div>
		<div class="header" style="background: orange;">1</div>
		<div class="content" style="background: #ccc;">2</div>
		<div class="footer" style="background: green;">3</div>
		<div class="header" style="background: orange;">1</div>
		<div class="content" style="background: #ccc;">2</div>
		<div class="footer" style="background: green;">3</div>
    </div>
</body>
</html>
